import request from '@/utils/request';

export async function loadRoleList(appId){
    return request(`/access/app/${appId}/role/list`);
}

export async function getUserPermissions(appId,userId){
    return request(`/access/app/${appId}/user/${userId}/permissions`);
}

export async function loadUserRoleList(appId,userId){
    return request(`/access/app/${appId}/user/${userId}/roles`);
}